package com.yunsc.order.sevice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunsc.common.utils.PageResult;
import com.yunsc.order.dto.QueryDeliveryDTO;
import com.yunsc.order.entity.YunscOrderDeliveryEntity;
import com.yunsc.order.vo.OrderDeliveryVO;

import java.util.List;

/**
 * 订单发货单记录表
 *
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
public interface YunscOrderDeliveryService extends IService<YunscOrderDeliveryEntity> {

    /**
     * 根据订单ID查询发货单
     *
     * @param orderId 订单ID
     * @return 发货单
     */
    List<OrderDeliveryVO> queryDeliveryByOrderId(Integer orderId);

    /**
     * 分页查询发货单列表
     *
     * @param param 查询参数
     * @param currentStoreId 当前门店ID
     * @return 发货单分页列表
     */
    PageResult<OrderDeliveryVO> orderDeliveryPageList(QueryDeliveryDTO param, Integer currentStoreId);
}

